/*
 * @Author: wuheng wuheng@szhbzc.com
 * @Date: 2025-02-25 21:00:37
 * @LastEditors: wuheng wuheng@szhbzc.com
 * @LastEditTime: 2025-02-25 21:00:41
 * @FilePath: \web-appc:\Users\wuheng\Desktop\WugangNew\src\api\newHome.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/newrequst";

// 查询菜品分类树
export const getPriceFluctuation = (data: any) => {
  return request({
    url: `/purchase/v1/public/sku-supply/price-fluctuation-view`, method: "post", data
  });
};
// 菜品统计
export const getStatisticDish = (data: any) => {
  return request({
    url: `/base/v1/index/statistic-dish`, method: "post", data
  });
};
// Spu统计
export const getStatisticSpu = (data: any) => {
  return request({
    url: `/base/v1/index/statistic-spu`, method: "post", data
  });
};
// Sku统计
export const getStatisticSku = (data: any) => {
  return request({
    url: `/base/v1/index/statistic-sku`, method: "post", data
  });
};
// 查看首页今日统计
export const getHomeAllTodayStatisApi = (data: any) => {
  return request({
    url: `/report/v1/index/today-statistic`, method: "post", data
  });
};
// 查询首页全部食堂数据
export const getHomeAllSaleStatisApi = (data: any) => {
  return request({
    url: `/report/v1/index/sale-statistic-all`, method: "post", data
  });
};
// 查询单个食堂数据
export const getHomeSaleStatisApi = (data: any) => {
  return request({
    url: `/report/v1/index/sale-statistic`, method: "post", data
  });
};
// 查看单个食堂投产比
export const getHomeSaleRoiApi = (data: any) => {
  return request({
    url: `/report/v1/index/sale-statistic-roi`, method: "post", data
  });
};
